﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using STAR.Spring.Framework.Module;

namespace STAR.Spring.Framework
{
    public interface ICustomResponse
    {
        ReturnDataType requestType { get; set; }
        /// <summary>
        ///完全自定义开发 ps:1、如不实现直接返回null   2、如调用失败可直接抛出异常
        /// </summary>
        /// <param name="parms"></param>
        /// <returns></returns>
        dynamic CustomProcess(string requestName, params object[] parms);

        bool BeforeReadData(string requestName, params object[] parms);
        DataTable ReadData(string requestName,params object[] parms);
        bool AfterReadData(DataTable dt);

        bool BeforeCreateResult(DataTable dt);
        dynamic CreateResult(DataTable dt);
        bool AfterCreateResult(dynamic result);
    }
}
